-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: update js-doc throughout the app, batch 1 #5309
Conversation
Signed-off-by: Erik Kieckhafer <[email protected]>
Signed-off-by: Erik Kieckhafer <[email protected]>
Signed-off-by: Erik Kieckhafer <[email protected]>
Signed-off-by: Erik Kieckhafer <[email protected]>
Signed-off-by: Erik Kieckhafer <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Erik, I run your branch and the warnings are down to 417! Almost half, very cool.
* @method | ||
* @memberof Shop/GraphQL | ||
* @summary Gets the primary shop | ||
* @param {Object} parentObject - unused | ||
* @param {Object} args - unused | ||
* @param {Object} _ - unused |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, curious what's the meaning of this change (and what does having "_" mean).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bt3gl we have all our queries / mutations set up to accept these three params: parentResult
, inputArgs
, and context
. In a lot of cases, we don't need to pass in parentResult
or any args
, so we use _
and __
as placeholders for these fields.
Resolves parts of #5269 & #5267
Impact: major
Type: docs|chore
Issue
We are missing entire
jsdoc
blocks in some instances, and param / return / description lines ofjsdoc
in other instances, along with otherjsdoc
errors, all throughout Reaction. This is the biggest contributor to oureslint
warnings.Solution
Add / fix
jsdoc
where necessary.Since there are so many of these warnings, I'm going to split it up into multiple PR's to keep the file count low for easier viewing / less conflicts with open branches.
Breaking changes
None
Testing
More detail for what each of these sections should include are available in our Contributing Docs